get_bls_data | R Documentation |
Recursively get jobs data from the Bureau of Labor Statistics.
get_bls_data(series_id, start_year = NULL, end_year = NULL, api_key = NULL)
series_id |
The ID of the series you want to download |
start_year |
The first (earliest) year for which you want data for the |
end_year |
The last (most recent) year for which you want data for the |
api_key |
Your registred BLS API key, or |
Recursively requests data for the given series. Starts by downloading an increment
number of years ending with the user-supplied end_year
, and recursively works backward
to either the user-supplied start_year
or the first available year, whichever is greater.
If api_key
is NULL
, get_bls_data()
will set increment = 10
,
working within the 10-year limitation of the BLS API for unregistered users.
A data frame containing the requested data.
bls_api
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.